package com.cskaoyan.javase.basic._9control;

/**
 * if...else配合return去掉else
 * @since 14:44
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class Demo7 {
    public static void main(String[] args) {
        int num = 10;
        if (num > 0) {
            System.out.println("大于0");
            return;
        }
        // else
        System.out.println("不大于0");
    }
}
